package com.ssy.lingxi.settle.accounts.model.vo.request;

import com.ssy.lingxi.settle.accounts.model.bo.PayProveBO;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.List;

/**
 * 会员结算付款VO
 * @author 伍将
 * @date 2020/10/23
 * @version 2.0.0
 */
public class PayVO implements Serializable {
    private static final long serialVersionUID = 8530247865182724170L;

    /**
     * 会员结算id
     */
    @NotNull(message = "会员结算id大于0")
    @Positive(message = "会员结算id大于0")
    private Long id;

    /**
     * 支付凭证
     */
    @Valid
    @NotNull(message = "支付凭证不能为空")
    @Size(min = 1, message = "至少有一个支付凭证")
    private List<PayProveBO> proveList;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public List<PayProveBO> getProveList() {
        return proveList;
    }

    public void setProveList(List<PayProveBO> proveList) {
        this.proveList = proveList;
    }
}
